#include <iostream>
#include <vector>
using namespace std;

vector<int> getRow(int rowIndex) {
    // Start typing your C/C++ solution below
    // DO NOT write int main() function
    vector<int> res;
    res.push_back(1);
    if(rowIndex==0){
        return res;
    }
    res.push_back(1);
    if(rowIndex==1){
        return res;
    }

    for(int level=2; level<=rowIndex; ++level){
        res.push_back(1);
        for(int i=res.size()-2; i>0; --i){
            res[i] = res[i] + res[i-1];
        }
    }

    return res;
}

int main(){
    return 0;
}